package com.dime.physical.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dime.physical.mapper.DimeMaincheckharmotherdiseaseMapper;
import com.dime.physical.domain.DimeMaincheckharmotherdisease;
import com.dime.physical.service.IDimeMaincheckharmotherdiseaseService;

/**
 * 危害对应的其他异常Service业务层处理
 * 
 * @author Tiny
 * @date 2023-10-17
 */
@Service
public class DimeMaincheckharmotherdiseaseServiceImpl implements IDimeMaincheckharmotherdiseaseService 
{
    @Autowired
    private DimeMaincheckharmotherdiseaseMapper dimeMaincheckharmotherdiseaseMapper;

    /**
     * 查询危害对应的其他异常
     * 
     * @param id 危害对应的其他异常主键
     * @return 危害对应的其他异常
     */
    @Override
    public DimeMaincheckharmotherdisease selectDimeMaincheckharmotherdiseaseById(String id)
    {
        return dimeMaincheckharmotherdiseaseMapper.selectDimeMaincheckharmotherdiseaseById(id);
    }

    /**
     * 查询危害对应的其他异常列表
     * 
     * @param dimeMaincheckharmotherdisease 危害对应的其他异常
     * @return 危害对应的其他异常
     */
    @Override
    public List<DimeMaincheckharmotherdisease> selectDimeMaincheckharmotherdiseaseList(DimeMaincheckharmotherdisease dimeMaincheckharmotherdisease)
    {
        return dimeMaincheckharmotherdiseaseMapper.selectDimeMaincheckharmotherdiseaseList(dimeMaincheckharmotherdisease);
    }

    /**
     * 新增危害对应的其他异常
     * 
     * @param dimeMaincheckharmotherdisease 危害对应的其他异常
     * @return 结果
     */
    @Override
    public int insertDimeMaincheckharmotherdisease(DimeMaincheckharmotherdisease dimeMaincheckharmotherdisease)
    {
        dimeMaincheckharmotherdisease.setCreateTime(DateUtils.getNowDate());
        return dimeMaincheckharmotherdiseaseMapper.insertDimeMaincheckharmotherdisease(dimeMaincheckharmotherdisease);
    }

    /**
     * 修改危害对应的其他异常
     * 
     * @param dimeMaincheckharmotherdisease 危害对应的其他异常
     * @return 结果
     */
    @Override
    public int updateDimeMaincheckharmotherdisease(DimeMaincheckharmotherdisease dimeMaincheckharmotherdisease)
    {
        dimeMaincheckharmotherdisease.setUpdateTime(DateUtils.getNowDate());
        return dimeMaincheckharmotherdiseaseMapper.updateDimeMaincheckharmotherdisease(dimeMaincheckharmotherdisease);
    }

    /**
     * 批量删除危害对应的其他异常
     * 
     * @param ids 需要删除的危害对应的其他异常主键
     * @return 结果
     */
    @Override
    public int deleteDimeMaincheckharmotherdiseaseByIds(String[] ids)
    {
        return dimeMaincheckharmotherdiseaseMapper.deleteDimeMaincheckharmotherdiseaseByIds(ids);
    }

    /**
     * 删除危害对应的其他异常信息
     * 
     * @param id 危害对应的其他异常主键
     * @return 结果
     */
    @Override
    public int deleteDimeMaincheckharmotherdiseaseById(String id)
    {
        return dimeMaincheckharmotherdiseaseMapper.deleteDimeMaincheckharmotherdiseaseById(id);
    }
}
